package com.sjq.common.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface MainService {
    
    /**
     * 获取子菜单
     * @param roledm 角色代码
     * @param pid 父菜单编码
     * @return
     */
    List<Map<String, String>> loadSubMenu(String roledm, String pid) throws SQLException;
    
    /**
     * 获取所有后代菜单
     * @param roledm
     * @param pid
     * @return
     * @throws SQLException
     */
    List<Map<String, Object>> loadAllSubMenu(String roledm, String pid) throws SQLException;
}
